home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mintmant
/
pfork.txt
< prev
next >
Wrap
Text File
|
1992-03-24
|
1KB
|
64 lines
Pfork(2) Oct. 1, 1991 Pfork(2)
NAME
Pfork - create a copy of the current process
SYNOPSIS
WORD Pfork();
DESCRIPTION
Pfork creates a copy of the current process. The child (the
new process created) inherits a copy of the parent's address
space, not the parent's original memory, and so changes to
variables in the child do not affect the parent in any way.
The new process begins execution with an apparent return
from the Pfork call.
RETURNS
0 in the child
The new process id (a positive number), in the parent.
ENSMEM if there is not enough memory to create the new pro-
cess.
SEE ALSO
Pexec(2), Pvfork(2)
BUGS
If the parent is in supervisor mode when this call is made,
the child will be started in user mode anyway; thus, it is
strongly recommended that this call be made only from user
mode.
The current implementation of Pfork acts like Pvfork in that
the parent is suspended until the child either exits or
overlays itself with Pexec mode 200. Do not rely on this
behavior, as it will be changed in future versions of MiNT.
Version 0.9 Last change: MiNT Programmer's Manual 1